package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dao.photoupload.PhotoUploadMapper;
import com.bbzn.device.client.dataobject.PhotoUpload;
import com.bbzn.device.client.service.PhotoUploadService;
@Service
public class PhotoUploadServiceImpl implements PhotoUploadService{

    @Resource
    private PhotoUploadMapper photoUploadMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return photoUploadMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PhotoUpload record) {
        return photoUploadMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(PhotoUpload record) {
        return photoUploadMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(PhotoUpload record) {
        return photoUploadMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(PhotoUpload record) {
        return photoUploadMapper.insertSelective(record);
    }

    @Override
    public PhotoUpload selectByPrimaryKey(Long id) {
        return photoUploadMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PhotoUpload record) {
        return photoUploadMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PhotoUpload record) {
        return photoUploadMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<PhotoUpload> findByAll(PhotoUpload photoUpload) {
        return photoUploadMapper.findByAll(photoUpload);
    }

    @Override
    public List<PhotoUpload> selectByImei(String imei) {
        return photoUploadMapper.selectByImei(imei);
    }

    @Override
    public int updateBatch(List<PhotoUpload> list) {
        return photoUploadMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<PhotoUpload> list) {
        return photoUploadMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<PhotoUpload> list) {
        return photoUploadMapper.batchInsert(list);
    }

}
